package com.example.springbootdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 影院售票-售票表-7
 * </p>
 *
 * @author 廖老师
 * @since 2023-11-24
 */
@TableName("sp_ticket")
public class SpTicket implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号: 自增列
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 排片id: 关联 sp_plan.id
     */
    private Integer pid;

    /**
     * 金额
     */
    private Float money;

    /**
     * 支付方式: 现金, 支付宝, 微信支付
     */
    private String payType;

    /**
     * 支付时间
     */
    private LocalDateTime payTime;

    /**
     * 座位号: 座位号 > 0 and 座位号 <= 影厅座位数
     */
    private Integer seatSn;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Float getMoney() {
        return money;
    }

    public void setMoney(Float money) {
        this.money = money;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public LocalDateTime getPayTime() {
        return payTime;
    }

    public void setPayTime(LocalDateTime payTime) {
        this.payTime = payTime;
    }

    public Integer getSeatSn() {
        return seatSn;
    }

    public void setSeatSn(Integer seatSn) {
        this.seatSn = seatSn;
    }

    @Override
    public String toString() {
        return "SpTicket{" +
        "id=" + id +
        ", pid=" + pid +
        ", money=" + money +
        ", payType=" + payType +
        ", payTime=" + payTime +
        ", seatSn=" + seatSn +
        "}";
    }
}
